TOP := $(call my-dir)
LOCAL_PATH := $(call my-dir)

USER_INCLUDE_PATH := /Users/zhyioo/Documents/Code/C++/libzhouyb/zhou_yb
OPENSSL_PATH := /Users/zhyioo/Software/openssl-1.0.2k
ANDROID_LIBS_DIR := /Users/zhyioo/Software/android_jni

include $(CLEAR_VARS)

LOCAL_MODULE    := iconv
LOCAL_SRC_FILES := $(ANDROID_LIBS_DIR)/libs/armeabi_x86/libiconv-1.14_a.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := ../cpp/com_hardware_h003_HardwareDriver.cpp
LOCAL_C_INCLUDES := \
        $(LOCAL_PATH) \
        $(ANDROID_LIBS_DIR)/jni/libiconv-1.14/include \
        $(USER_INCLUDE_PATH)

LOCAL_CPPFLAGS += -fexceptions

LOCAL_CFLAGS += -W -Wall -fPIC -DPIC
LOCAL_STATIC_LIBRARIES := iconv
LOCAL_PRELINK_MODULE    := false
LOCAL_MODULE            := HardwareDriver

include $(BUILD_SHARED_LIBRARY)


include $(CLEAR_VARS)

LOCAL_SRC_FILES := ../cpp/com_lc_driver_JniComTransmitHandler.cpp
LOCAL_C_INCLUDES := \
        $(LOCAL_PATH) \
        $(OPENSSL_PATH)/include \
        $(USER_INCLUDE_PATH)

LOCAL_CPPFLAGS += -fexceptions

LOCAL_CFLAGS += -W -Wall -fPIC -DPIC
LOCAL_PRELINK_MODULE    := false
LOCAL_MODULE            := ComDevice

include $(BUILD_SHARED_LIBRARY)